package validate

type ExcelFormatPasteData struct {
	Parsed     [][]string `json:"parsed" binding:"required"`
	HasHeader  string     `json:"has_header" binding:"required,oneof=yes no"`
	ModuleCode string     `json:"module_code" binding:"required"`
}

type ExcelFormatFileData struct {
	HasHeader  string `form:"has_header" binding:"required,oneof=yes no"`
	ModuleCode string `form:"module_code"`
}

type ExcelImportData struct {
	ModuleCode    string                   `json:"module_code" binding:"required"`
	Header        []string                 `json:"header" binding:"required"`
	Body          []map[string]interface{} `json:"body" binding:"required"`
	HeaderMapping []map[string]string      `json:"header_mapping" binding:"required"`
}
